﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace ePhoneBook.Models
{
    public class ReportTransactionModel : ReportBaseModel
    {
        [DataType(DataType.Text)]
        [Display(Name = "Language Key")]
        public string LanguageKey { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "Having Clause")]
        public string HavingClause { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "TLZone")]
        public string TLZone { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "TSZone")]
        public string TSZone { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "Group By")]
        public string GroupBy { get; set; }
    }

    public class ReportBaseModel
    {
        [DataType(DataType.Text)]
        [Display(Name = "Where Clause")]
        public string WhereClause { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "Page Index")]
        public string PageIndex { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "Page Size")]
        public string PageSize { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "OrderBy")]
        public string OrderBy { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "SortField")]
        public string SortField { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "SortDirection")]
        public string SortDirection { get; set; }
    }
}